package com.sky.mapper;


import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper  {


    List<Category> pageQuery(CategoryPageQueryDTO categoryPageQueryDTO);

    void removeById(Integer id);

    void updateOne(Category categoryDTO);

    void save(Category dto);

    List<Category> getByType(Integer type);
    @Select("select * from category ")
    List<Category> getList();
}
